#include <QCoreApplication>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <QDebug>
#include "../src/StickDiscern.h"

using namespace cv;
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    StickDiscern m_eelRecognition(60, 0.25);

    Mat test = imread("./5.jpg");

    cout  << "test channels3=" << test.channels() << endl;

    // set init
    m_eelRecognition.setBinarizationThreshold(28);

    m_eelRecognition.drawResultToImg(test, m_eelRecognition.result(test));

    waitKey(0);

    return a.exec();
}
